package com.controller.vo;

import java.util.ArrayList;
import java.util.List;

public class Node {
    private Integer id;
    private String text;
    private State state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }




    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", text='" + text + '\'' +
                ", state=" + state +
                ", nodes=" + nodes +
                '}';
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public List<Node> getNodes() {
        return nodes;
    }

    public void setNodes(List<Node> nodes) {
        this.nodes = nodes;
    }

    private List<Node> nodes=new ArrayList<Node>();
}
